package org.eiahe.hr.attendance.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.attendance.domain.Holiday;

import java.time.LocalDate;
import java.util.Date;

/**
 * 节假日视图对象
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Holiday.class)
public class HolidayVo {

    /**
     * 节假日ID
     */
    @ExcelProperty(value = "节假日ID")
    private Long holidayId;

    /**
     * 节假日日期
     */
    @ExcelProperty(value = "节假日日期")
    private LocalDate holidayDate;

    /**
     * 节假日名称
     */
    @ExcelProperty(value = "节假日名称")
    private String holidayName;

    /**
     * 是否调休日(0否 1是)
     */
    @ExcelProperty(value = "是否调休日")
    private String isCompensatory;

    /**
     * 年份
     */
    @ExcelProperty(value = "年份")
    private Integer year;

    /**
     * 状态(0正常 1停用)
     */
    @ExcelProperty(value = "状态")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
}
